import request from '@/utils/request'

// 查询自定义提纲
export function customList(data) {
  return request({
    url:  '/report/custom/listOutline'+data,
    method: 'GET',
    data,
  })
}

// 查询自定义提纲模板
export function templateList() {
  return request({
    url:  '/report/template/listOutline',
    method: 'GET',
  })
}



// 新增自定义提纲
export function addCustom(data) {
  return request({
    url:  '/report/custom/add',
    method: 'POST',
    data,
  })
}

// 修改自定义提纲
export function editCustom(data) {
  return request({
    url:  '/report/custom/edit',
    method: 'POST',
    data,
  })
}

// 删除自定义提纲
export function delCustom(url) {
  return request({
    url:  '/report/custom/'+url,
    method: 'DELETE',
  })
}

// 一级提纲
export function delFirstLevelNode(data) {
  return request({
    url:  '/report/custom/remove',
    method: 'POST',
    data,
  })
}
